package com.zxj.friend.domain.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.zxj.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户提交表
 * </p>
 *
 * @author zxj2022
 * @since 2025-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user_submit")
@Schema(name="UserSubmit对象", description="用户提交表")
public class UserSubmit extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "提交记录id")
    @TableId(value = "submit_id", type = IdType.ASSIGN_ID)
    private Long submitId;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "题目id")
    private Long questionId;

    @Schema(description = "竞赛id")
    private Long examId;

    @Schema(description = "代码类型 0 java   1 CPP")
    private Integer programType;

    @Schema(description = "用户代码")
    private String userCode;

    @Schema(description = "0：未通过  1：通过")
    private Integer pass;

    @Schema(description = "执行结果")
    private String exeMessage;

    @Schema(description = "用例判断结果")
    private String caseJudgeRes;

    @Schema(description = "得分")
    private Integer score;


}
